'use strict';

/**
 * @type {*}
 */

let StringUtil = require('../../util/StringUtil');
let baseService = require('../BaseService');
const URI = {
    ALARM: '/users',
    INFO_EXPORT:'/asset/downloadFile',//告警信息Excel导出
    GET_CHAR:'/asset/statisticUtilization',//告警信息图表数据
};

/**
 * 获取-告警信息列表
 * @param thiz
 * @returns {Promise}
 */
module.exports.getInfoList = function (thiz, params) {
    return baseService.get(thiz, URI.ALARM, params);
};
//告警信息Excel导出
module.exports.getAlarmInfoExport  = function (thiz,params) {
    return baseService.get(thiz,URI.INFO_EXPORT, params);
};
/** 告警信息图表数据*/
module.exports.getChar  = function (thiz, params) {
    return baseService.get(thiz, URI.GET_CHAR, params);
};
